<template>
  <div class="platformOrderList1">
    <div class="buyingIfor">
      <template v-for="(i,index) in dataList">
        <a-card :key="index">
          <div>
            <template v-for="(item,index1) in btn">
              <a-button
                :key="index1"
                @click="handler(index1,index)"
                v-if="item.isShow"
                type="primary"
                style="margin:0 10px 0px 0"
              >{{item.title}}</a-button>
            </template>
            <div class="total">
              <span>共</span>
              <span>{{loadData.length}}</span>
              <span>种商品，合计金额：</span>
              <span>{{'¥' + toDecimal2(price)}}</span>
            </div>
            <a-table
              rowKey="id"
              :columns="tableOption"
              :dataSource="loadData"
              :loading="loading"
              :pagination="false"
            >
              <!-- <span slot="span1" slot-scope="text,record">
                <a-button type="link" >{{record.goodsName}}</a-button>
              </span>
              <span slot="span2" slot-scope="text,record">
                <a-input ref="userNameInput" v-model="record.conversionNum" :disabled="true" :addon-after="record.convertUnit" @change="onConversionNumChange"></a-input>
              </span>
              <span slot="span3" slot-scope="text,record">
                <a-input ref="userNameInput" v-model="record.goodSubtotal" :disabled="true" addon-after="元"></a-input>
              </span>
              <span slot="action" slot-scope="text,record">
                <template>
                  <a-button type="link" @click="del(record)">移除</a-button>
                </template>
              </span> -->
            </a-table>
          </div>
        </a-card>
      </template>
    </div>
  </div>
</template>

<script src='./buyingIfor.js'></script>

<style lang="less">
.platformOrderList1 {
  .buyingIfor {
    .title {
      // padding: 0 0 20px 0;
      font-weight: 500;
      font-size: 24px;
    }
    .total {
      margin: 20px 0;
      span:nth-child(even) {
        font-weight: 600;
        font-size: 18px;
      }
      span:nth-child(odd) {
        font-size: 14px;
      }
    }
  }
}
</style>